﻿<Window x:Class="LinearSolver.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:LinearSolver"
        xmlns:view="clr-namespace:LinearSolver.View"
        Title="{StaticResource AppTitle}" SizeToContent="WidthAndHeight">
    <Window.CommandBindings>
        <CommandBinding Command="{x:Static local:Commands.Exit}"
                    Executed="ExecutedExit" />
    </Window.CommandBindings>
    <DockPanel>
        <Menu HorizontalAlignment="Stretch" DockPanel.Dock="Top">
            <MenuItem Header="_File">
                <MenuItem Command="{x:Static local:Commands.Exit}" />
            </MenuItem>
        </Menu>
        <TabControl Padding="10">
            <TabItem Header="Linear Equation Solver" Name="linearEquationTab">
                <view:LinearEquationView x:Name="linearEquationView" />
            </TabItem>
            <TabItem Header="Linear Program Solver" Name="linearProgramTab">
                <view:LinearProgramView x:Name="linearProgramView" />
            </TabItem>
        </TabControl>
    </DockPanel>
</Window>
